package day_14;

import java.util.Scanner;

public class TestException04 {

    public static void main(String[] args) {
        f();

    }

    private static void f() {
        try {
            method();
        }catch (Exception e){
            System.out.println("您输入的数据类型不对");
        }
    }

    private static void method() throws Exception {
        System.out.println("请输入一个整数：");
        int i = new Scanner(System.in).nextInt();
        System.out.println("请您输入要计算的第二个整数：");
        int i1 = new Scanner(System.in).nextInt();
        System.out.println(i / i1);
    }

}
